package com.lex.manager.pojo.dto;

public class PageParam {
    private Integer rows;
    private Integer page;
    public Integer getOffset(){
        return (page-1)*rows;
    }
    @Override
    public String toString() {
        return "PageParam{" +
                "rows=" + rows +
                ", page=" + page +
                '}';
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public PageParam(Integer rows, Integer page) {

        this.rows = rows;
        this.page = page;
    }

    public PageParam() {

    }
}
